package com.waves.spring.bean.Service;

import java.util.HashMap;
import java.util.Map;

public abstract class Test01 {
    public static void main(String[] args) {
        Map<Object, Object> map = new HashMap<>();
        map.put("a", (Runnable) () -> System.out.println("你好,我是一个线程"));

        Object a = map.get("a");
        System.out.println("开始执行线程");
        System.out.println("=============");
        ((Runnable)a).run();
    }

}
